/* 基础响应式布局 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 响应式导航栏 */
.header {
    background: #333;
    color: white;
    padding: 1rem;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.burger-menu {
    cursor: pointer;
    display: none;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0px;
        height: 100vh;
        top: 80px;
        background: #333;
        opacity: 0;
        width: 300px;
        transition: all 0.5s ease;
        transform: translateX(100%);
    }

    .nav-links.active {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        margin-top: 25px;
        transition: all 0.5s ease;
    }

    .burger-menu {
        display: block;
    }

    .nav-links li:nth-child(1) {
        transition-delay: 0.2s;
    }

    .nav-links li:nth-child(2) {
        transition-delay: 0.4s;
    }

    .nav-links li:nth-child(3) {
        transition-delay: 0.6s;
    }

    .nav-links li:nth-child(4) {
        transition-delay: 0.8s;
    }

    .burger-menu .line {
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px;
        transition: all 0.5s ease;
    }

    /* 响应式内容容器 */
    .container {
        padding: 0 15px;
    }
}